//
//  ViewController.m
//  NScoping
//
//  Created by MyMac on 15/7/17.
//  Copyright (c) 2015年 MyMac. All rights reserved.
//

#import "ViewController.h"
#import "Person.h"
@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    Person*per=[[Person alloc]init];
    per.str=@"1111";
    per.array=[[NSMutableArray alloc]init];
    Person*p=[per copy];
    [p.array addObject:@"222"];
    Person*po=[per mutableCopy];
    NSLog(@"%p*****%p***%p",per,per.str,per.array);
    NSLog(@"%p*****%p*%@**%p*%@",p,p.str,NSStringFromClass([p.str class]),p.array,NSStringFromClass([p.array class])   );
     NSLog(@"%p*****%p***%p",po,po.str,po.array);
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
